package zengqiang.day03

fun main(args: Array<String>) {
    var d:Animal=Dog()
    d.call()//狗叫
}
abstract class Animal{
    open fun call(){
        println("动物叫")
    }
}
class Dog:Animal(){
    override fun call(){
        println("狗叫")
    }
}